﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProvinceCity.aspx.cs" Inherits="DotNet.WebUI.BasicControl.ProvinceCity" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>省市县的联动下拉列表选择</title>
    <style type="text/css">
        td{ height:40px;}
        .TdRight{text-align:right;}
        select,input {width:400px; height:30px;  margin:2px; vertical-align:middle;}
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <table style="width:500px; margin:0 auto;">
            <tr>
                <td colspan="2">
                    <asp:Button ID="btnProvince" runat="server" Text="加载省份" Width="100px" 
                        Height="40px" onclick="btnProvince_Click" />
                </td>
            </tr>
            <tr>
                <td class="TdRight">
                    省</td>
                <td>
                    <asp:DropDownList ID="ddlProvince" runat="server" AutoPostBack="True" 
                        onselectedindexchanged="ddlProvince_SelectedIndexChanged">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="TdRight">
                    州市</td>
                <td>
                    <asp:DropDownList ID="ddlCity" runat="server" AutoPostBack="True" 
                        onselectedindexchanged="ddlCity_SelectedIndexChanged">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="TdRight">
                    县</td>
                <td>
                    <asp:DropDownList ID="ddlCounty" runat="server">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:Button ID="btnSelected" runat="server" Text="选择" Width="100px" 
                        Height="40px" onclick="btnSelected_Click" />
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    <asp:TextBox ID="txtInfo" Visible="false" runat="server"></asp:TextBox>
                </td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>